<div class="breadcrumb">
	{foreach from="`$breadcrumb`" item="crumb"}<a href="#{$crumb.id}">{$crumb.title|escape:"html":"UTF-8"}</a>{/foreach}
	<span style="float: right">ID: {$page.id}</span>
	{$page.revision.title|escape:"html":"UTF-8"}
</div>
	
<table class="table data plugins">
	<thead>	
	</thead>
	<tbody>
		{foreach from="`$page.plugins`" item="plugin"}{if !$plugin.context or $plugin.context == 'page'}
		<tr class="{cycle values=",alt" advance=false}" id="{$plugin.file|regex_replace:'/[\.\/]/':'_'}">
			<td class="famfamfam"><input type="checkbox" name="page[plugins][{$plugin.file}][enabled]" value="1" {if $plugin.enabled}checked="checked"{/if} /></td>
			<td><strong>{$plugin.name}</strong>{if $plugin.description}<br />
				{$plugin.description|replace:'___CMSNAME___':$cms_name|replace:'___CMSDOMAIN___':$cms_domain}{/if}</td>
			<td class="famfamfam"></td>
		</tr>
		<tr class="{cycle values=",alt"}" id="{$plugin.file|regex_replace:'/[\.\/]/':'_'}_config" {if !$plugin.enabled} style="display:none"{/if}>
			<td class="famfamfam"></td>
			<td><textarea name="page[plugins][{$plugin.file}][config]">{$plugin.config|escape:"html":"UTF-8"}</textarea><br />
				{if $plugin.instructions}{$plugin.instructions|replace:'___CMSNAME___':$cms_name|replace:'___CMSDOMAIN___':$cms_domain}<br />{/if}
				{if $plugin.manages_path}<input type="checkbox" name="page[plugins][{$plugin.file}][manage_path]" value="1" class="manage-path" {if $plugin.manage_path}checked="checked"{/if} /> Allow this plugin to manage the path.{/if}
			</td>
			<td class="famfamfam"></td>
		</tr>
		{/if}{/foreach}
	</tbody>
</table>
